import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store'
import util from './util'
import onlyMsg from './util/onlyMsg.js'
import { debounce } from './util/debounce.js'
import './plugins/element.js'
import './plugins/vxe-table.js'
import './plugins/iconPicker.js'
import './plugins/v-charts.js'
import './plugins/iview.js'
import './plugins/avue.js'
import './plugins/mchat'
import './components/auto-regist.js'
import './directive'
import './styles/index.css'

// 解决时区和日期格式(格林威治时间比北京时间晚8小时)问题
import moment from 'moment'
Date.prototype.toISOString = function(){ 
  return moment(this).format('YYYY-MM-DD HH:mm:ss')
} 

Vue.prototype.util = util;
Vue.prototype.$message = onlyMsg;
debounce(Vue);

Vue.config.productionTip = false

var vue = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

export default vue